//
//  FPLoginView.h
//  FinanceProject
//
//  Created by 陈显摆 on 2025/1/22.
//

#import <UIKit/UIKit.h>
#import "FPLoginContentView.h"

NS_ASSUME_NONNULL_BEGIN

@protocol PrivacyDidTapDelegate <NSObject>

- (void)customViewDidTapPrivacy:(FPProtocolModel *)model;

@end

typedef void(^loginActionBlock)(void);

typedef void(^getSMSCodeActionBlock)(void);

typedef void(^showTabBarBlock)(void);

@interface FPLoginView : UIView

@property (nonatomic , assign) BOOL isSelect;

@property (nonatomic, strong) FPLoginContentView *popupView;  // 弹窗视图

@property (nonatomic , copy) loginActionBlock loginBlock;

@property (nonatomic , copy) loginActionBlock getSMSCodeBlock;

@property (nonatomic , copy) showTabBarBlock showTabBarBlock;

@property (nonatomic, weak) id<PrivacyDidTapDelegate> delegate;

- (instancetype)initWithSource:(NSArray *)source;

// 弹窗从下到上的动画
- (void)showPopup;

// 弹窗关闭的动画
- (void)hidePopup;

- (void)shakePrivacyView;


@end

NS_ASSUME_NONNULL_END
